tests: Don't set colormap when creating offscreen windows
authorBenjamin Otte <otte@redhat.com>
Sat, 28 Aug 2010 16:05:47 +0000 (18:05 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:31 +0000 (15:11 +0200)
tests/gtkoffscreenbox.c

index cd70c3e4aa038444112317a54a784f6f9f6d186d..a889296135d2e26117cdc3cec2100754441a5629 100644 (file)
@@ -264,10 +264,9 @@ gtk_offscreen_box_realize (GtkWidget *widget)
                        | GDK_LEAVE_NOTIFY_MASK;
 
   attributes.visual = gtk_widget_get_visual (widget);
-  attributes.colormap = gtk_widget_get_colormap (widget);
   attributes.wclass = GDK_INPUT_OUTPUT;
 
-  attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
+  attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
 
   window = gdk_window_new (gtk_widget_get_parent_window (widget),
                            &attributes, attributes_mask);